<?php
declare (strict_types = 1);

namespace app\model\communal;

use app\model\concern\AmisTrait;
use think\Model;

class OrderConsultRefundModel extends Model
{
    use AmisTrait;

    /**
     * 数据库配置
     *
     * @var string
     */
    protected $connection = 'communal';

    /**
     * 主键
     *
     * @var string
     */
    protected $pk = 'id';

    /**
     * 表名
     *
     * @var string
     */
    protected $table = '50201_order_consult_refund';

    /**
     * 自动时间戳
     *
     * @var bool
     */
    protected $autoWriteTimestamp = true;

    /**
     * 时间字段设置
     *
     * @var string
     */
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';

    /**
     * 展示字段名
     *
     * @var string[]
     */
    public static $column = [
        'id', 'order_consult_id', 'number', 'out_request_no', 'payment_amount', 'deduct_coin', 'refund_reason', 'created_at',
    ];

    /**
     * 搜索字段名
     *
     * @var string[]
     */
    public static $searchColumn = [
        'id', 'order_consult_id', 'number', 'out_request_no',
    ];

    /**
     * 新增字段
     *
     * @var string[]
     */
    public static $saveColumn = [
    ];

    /**
     * 更新字段
     *
     * @var string[]
     */
    public static $updateColumn = [
    ];

    /**
     * @var string[]
     */
    public static $itemColumn = [
    ];
}
